<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Admin extends MY_Controller {

    function __construct() {
        parent::__construct();
        
        $this->layout->set_layout("default");

        // set javascript to view
        $this->layout->set_javascript(array(
            'jquery.ui.core.min.js',
            'jquery.ui.datepicker.min.js',
            'jquery.tabs.js',
            'shadowbox/shadowbox.js',
            'shadowbox/init.js',
        ));

        // set css to view
        $this->layout->set_rel(array(
            'jquery.ui.base.css',
            'jquery.ui.datepicker.css',
            'js' => 'shadowbox/shadowbox.css'
        ));
        
    }

    public function index($id) {
        echo $id;
        
        $this->layout->set_title('ABC');
        $this->layout->set_description("description");
        $this->layout->set_keyword("keyword");
        $this->layout->set_image("image");
        $data = NULL;
        $this->parser->parse('admin', $data);
    }
    
    public function detail($id) {
        
        echo $this->uri->segment(2);
    }
}